/**
 * HookDeliver.java 2008-05-14
 * 
 * Linker is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

package linker.chat;

import linker.plugin.Plugin;

/**
 * Link plugin to buddy.
 * 
 * @version 2008-05-28
 * @author Jianfeng tujf.cn@gmail.com
 * 
 */

public class PluginChatListener {
	/**
	 * The pluginItem.
	 */
	private Plugin savedPlugin;

	/**
	 * The buddy.
	 */
	private String savedBuddy;

	/**
	 * Constructor.
	 * 
	 * @param plugin
	 *            The pluginItem to listen.
	 * @param buddy
	 *            The buddy to be listened.
	 */
	public PluginChatListener(final Plugin plugin, final String buddy) {
		this.savedPlugin = plugin;
		this.savedBuddy = buddy;
	}

	/**
	 * Get the buddy to be listened..
	 * 
	 * @return The listened buddy.
	 */
	public final String getBuddy() {
		return savedBuddy;
	}

	/**
	 * Get the listening plugin.
	 * 
	 * @return The listening plugin.
	 */
	public final Plugin getPlugin() {
		return savedPlugin;
	}
}
